package top.lilele.adminSystem.service;

import org.springframework.stereotype.Service;
import top.lilele.adminSystem.entity.AdminFolderFileEntity;
import top.lilele.adminSystem.mapper.AdminFolderFileMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lilele
 */
@Service
public class AdminFolderFileService {
    @Resource
    AdminFolderFileMapper adminFolderFileMapper;

    /**
     * 新增产品-项目文件夹文件
     *
     * @param adminFolderFileEntity
     */
    public void add(AdminFolderFileEntity adminFolderFileEntity) {
        adminFolderFileMapper.insert(adminFolderFileEntity);
    }

    public List<AdminFolderFileEntity> queryFolderFileList() {
        List<AdminFolderFileEntity> list = adminFolderFileMapper.selectList(null);
        return list;
    }
}
